package com.li.builder;

public class BuilderPatternDemo {

    public static void main(String[] args) {
        MealBuilder mealBuilder=new MealBuilder();
        Meal meal1 = mealBuilder.meal1();
        System.out.println("套餐1");
        System.out.println("总价："+meal1.getCost());
        meal1.showItems();
        System.out.println("**********************************");
        Meal meal2 = mealBuilder.meal2();
        System.out.println("套餐2");
        System.out.println("总价："+meal2.getCost());
        meal2.showItems();
    }
}
